<template lang="">
    <div>
        {{name}}<br>
        <input @input='hanshu' />
        <div style='color:red' v-text='name'></div>
        <div v-html="name"></div>
        
    </div>
</template>
<script>
export default {
    data() {
        return {
            name:'<div style="color:red"></div>'
            // add:'<div style="color:red"></div>'
        }
    },
    methods: {
        hanshu(e){
        console.log(e);
        this.name=e.target.value
        }
    },
}
</script>
<style lang="">
    
</style>